//
//  AppDelegate.swift
//  DYSwiftFramework
//
//  Created by 黄德玉 on 2018/4/17.
//  Copyright © 2018年 none. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        RouterMap.setup()
        let vc = Router.rootRoute()
        window = UIWindow(frame: UIScreen.main.bounds)
        window!.rootViewController = vc
        window!.makeKeyAndVisible()
        return true
    }
    func applicationWillResignActive(_ application: UIApplication) {
        window?.isUserInteractionEnabled = true
    }
}

